package com.example.demo.service;

import com.example.demo.bean.User;
import com.example.demo.mapper.UserMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

public interface UserService {

    public List<User> findAllUser();//所有用户

    public User findUserByUserName(String userName);

    public User findUserByUser(User user);
    public boolean insertUser(User user);//插入用户

    public boolean deleteUserById(String userNum);//删除用户

    public boolean updateUserPwd(String userName, String userPwd);//修改密码

}
